﻿using System;
using MongoCamp;

namespace SimpleDemo
{
    class Blog : EntityCollection<int, Blog>
    {
        public Blog()
        {
            CreatedTime = DateTime.Now;
        }

        public int BlogId 
        {
            get { return GetPrimaryKeyID(); } 
            set { SetPrimaryKeyID(value); } 
        }

        public string Title { get; set; }

        public string Content { get; set; }

        public DateTime CreatedTime { get; set; }

    }
}
